package com.ls.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author lisheng
 * @Date 2025/04/24 10:04
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeCatNode {
    private Integer id;
    private Integer parentId;
    private String name;
    private String path;
    private Integer available;
    private String type;
    private Boolean spread = false;
    private List<TreeCatNode> children = new ArrayList<TreeCatNode>();

    public TreeCatNode(Integer id, Integer parentId, String name, Boolean spread) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.spread = spread;
    }
}
